package cn.com.pajx.pajx_visitor_v3.utils;

import android.text.TextUtils;
import android.widget.Toast;

import cn.com.pajx.pajx_visitor_v3.BaseApp;


/**
 * create by ruancw on 2024/2/28.
 * UI显示工具类
 */
public final class ToastUtil {

    private ToastUtil() {
        throw new UnsupportedOperationException("cannot be instantiated");
    }


    /**
     * Toast 提示信息
     *
     * @param msg 提示内容
     */
    public static void toast(String msg) {
        String message = TextUtils.isEmpty(msg) ? "未知提示信息" : msg;
        if ((!TextUtils.isEmpty(msg))) {
            Toast.makeText(BaseApp.getInstance(), message, Toast.LENGTH_LONG).show();
        }
    }
}
